﻿@model INFDTM01.ViewModels.CreateStandardUsers

@{
    ViewBag.Title = "User";
}

<h2>Create Standard Users</h2>

<table>
    <tr>
        <th>User Id</th>
        <th>Item Id</th>
        <th>Rating</th>
    </tr>
    @foreach (KeyValuePair<int, INFDTM01.Models.UserPreference> pair in Model.UserPreferences)
    {
        for (int i = 0; i < pair.Value.ItemIds.Count(); i++)
        {
            <tr>
                <td>@pair.Value.UserId</td>
                <td>@pair.Value.ItemIds[i]</td>
                <td>@pair.Value.Preferences[i]</td>
            </tr>
        }
    }
</table>

<table>
    <tr>
        <th>Similarities</th>
    </tr>
    @foreach (KeyValuePair<int, double> pair in Model.UserSimilarities)
    {
        <tr>
            <td>@pair.Value</td>
        </tr>
    }
</table>

<table>
    <tr>
        <th>Item</th>
        <th>Ranking</th>
    </tr>
    @foreach (KeyValuePair<int, double> pair in Model.Rankings)
    {
        <tr>
            <td>@pair.Key</td>
            <td>@pair.Value</td>
        </tr>
    }
</table>

<table>
    <tr>
        <th>Item</th>
        <th>Prediction</th>
    </tr>
    @foreach (KeyValuePair<int, float> pair in Model.Predictions)
    {
        <tr>
            <td>@pair.Key</td>
            <td>@pair.Value</td>
        </tr>
    }
</table>